sieve of eratosthenes in python